package com.ys.web.yinsheng.model;

import com.ys.utils.base.j2se.JsonUtil;
import com.ys.utils.base.j2se.StringHandler;

import java.util.Map;

/**
 * @Author: dhf
 * @ClassName: ReportInfo
 * @Date: 2022/7/20 20:41
 * @Description:报备信息
 * @Version: 1.0
 */
public class ReportInfo {
    public String alipayMerchantNo;//支付宝商户号
    public String wxMerchantNo;//微信商户号
    public String outMerchantNo;//外部商户号
    public String merchantNo;//银盛商户号

    public ReportInfo() {

    }
    public ReportInfo(String str) {
        Map<String,Object> map = JsonUtil.jsonToBean(str,Map.class);
        if(StringHandler.isEmpty(map)){
            return;
        }
        this.alipayMerchantNo=StringHandler.getString(map.get("alipayMerchantNo"));
        this.wxMerchantNo=StringHandler.getString(map.get("wxMerchantNo"));
        this.outMerchantNo=StringHandler.getString(map.get("outMerchantNo"));
        this.merchantNo=StringHandler.getString(map.get("merchantNo"));
    }

}
